package com.example.order.dao;

import com.example.order.po.Course;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface CourseDao {

    @Select("select * from course")
    List<Course> queryAllCourse();

    @Insert({"insert into course(c_id, c_name) values(#{cId}, #{cName})"})
    void saveCourse(Course course);
}
